package game;

import java.util.ArrayList;

public class NewMainGame {
	NewAgent c0;
	NewAgent c1;
	NewAgent c2;
	NewAgent c3;
	ArrayList<NewAgent> test;
	public NewMainGame(){
		c0 = new NewAgent(100, 50, 50);
		c1 = new NewAgent(100, 50, 50);
		c2 = new NewAgent(100, 50, 50);
		c3 = new NewAgent(100, 50, 50);
		
		test = new ArrayList<NewAgent>(4);
		test.add(c0);test.add(c1);test.add(c2);test.add(c3);
	}
	public void play(){
		int catcher=0;
		while((test.size()> 1) && (catcher <10)){
		NewRound asdf = new NewRound(test, 0);
		test = asdf.play();
		catcher++;
		}
		NewAgent tom = new NewAgent(100, 50,50);
		char[] letters = {'a','a','a'};
		tom.rack.addLetter(letters);
		System.out.println(tom.rack.returnString());
		System.out.println("The winner is player xxx");

	}
	public static void main(String [] args){
		System.out.println("1");
		NewMainGame GAME = new NewMainGame();
		GAME.play();
	}
}